﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;
using System.Data;
namespace BUS
{
    public partial class LaoiNVL_BUS
    {
        //du
        LoaiNVL_DAO loainvl_dao;
        public DataTable DanhSachLoaiNVL( )
        {
            loainvl_dao = new LoaiNVL_DAO();
            DataTable dt = new DataTable();
            dt = loainvl_dao.DanhSachLoaiNVL();
            return dt;
        }
        public DataTable DanhSachLoaiNVL_Ma(string strMa)
        {
            loainvl_dao = new LoaiNVL_DAO();
            DataTable dt = new DataTable();
            dt = loainvl_dao.DanhSachLoaiNVL_Ma(strMa);
            return dt;
        }
        public string MaLoaiNVLTang()
        {
            loainvl_dao = new LoaiNVL_DAO();
            return loainvl_dao.MaLoaiNVLTang();
        }
        public bool ThemLoaiNVL(LoaiNVL loainvl_dto)
        {
            loainvl_dao = new LoaiNVL_DAO();
            return loainvl_dao.ThemLoaiNVL(loainvl_dto);
        }
        public bool CapNhatLoaiNVL(LoaiNVL loainvl_dto)
        {
            loainvl_dao = new LoaiNVL_DAO();
            return loainvl_dao.CapNhatLoaiNVL(loainvl_dto);
        }
        public bool XoaLoaiNVL(LoaiNVL loainvl_dto)
        {
            loainvl_dao = new LoaiNVL_DAO();
            return loainvl_dao.XoaLoaiNVL(loainvl_dto);
        }
    }
}
